from batch.models import ExecutionRecord
from rest_framework import serializers

class ExecutionRecordSerializer(serializers.ModelSerializer):
    create_time = serializers.DateTimeField(format="%Y-%m-%d %H:%M:%S", required=False, read_only=True)
    class Meta:
        model = ExecutionRecord
        fields = "__all__"
        read_only_fields = ('id',)